#coding=utf-8
import sleeputil
from selenium import webdriver
import urlutil
import time
import findutil

class FireFoxUtil(object):
    def __init__(self):

        self.sleeps = sleeputil.SleepUtil()
        pass

    def StartChrome(self,url):
        #打开Chrome
        self.driver = webdriver.Chrome()
        #打开指定url
        self.driver.get(url)
        #打开最大化窗口
        self.driver.maximize_window()
        #设置休眠等待
        self.driver.implicitly_wait(10)
        # im = self.driver.find_element_by_xpath()
        # im.send_keys()
        pass

    def CloseChrome(self):
        #关闭浏览器
        self.driver.quit()
        pass
